package com.cds.alert.pojo;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * <p>
 * 类描述：微博发帖访问记录表
 * <p>
 * 作     者： migrant
 * <p>
 * 日     期： 2014年3月10日
 * <p>
 * 时     间： 上午8:50:47
 * <p>
 */
@Entity
@Table(name = "alert_log_blog")
public class AlertAlarmBlog extends IdEntity {

	/** 阅读状态, 0: 未读; 1: 已读*/
	private Integer read;
	/**日志产生时间*/
	private Date logTime;
	/**源IP地址*/
	private String srcIp;
	/**源端口*/
	private int srcPort;
	/**目标IP地址*/
	private String destIp;
	/**目标端口*/
	private int destPort;
	/**邮件内容*/
	private String url;
	/**访问方式*/
	private MethodType method;
	/**发帖内容*/
	private String content;
	/**附件名称*/
	private String attachments;
	/**附件存储路径，分号分隔*/
	private String attachmentsStore;
	/**MAC地址*/
	private String mac;
	
	/**关联的用户名*/
	private String username;
	/**关联的机构名*/
	private String groupname;
	
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getGroupname() {
		return groupname;
	}

	public void setGroupname(String groupname) {
		this.groupname = groupname;
	}
	
	
	public String getMac() {
		return mac;
	}

	public void setMac(String mac) {
		this.mac = mac;
	}
	public Integer getRead() {
		return read;
	}

	public void setRead(Integer read) {
		this.read = read;
	}
	
	public Date getLogTime() {
		return logTime;
	}

	public void setLogTime(Date logTime) {
		this.logTime = logTime;
	}
	
	public String getSrcIp() {
		return srcIp;
	}

	public void setSrcIp(String srcIp) {
		this.srcIp = srcIp;
	}

	public int getSrcPort() {
		return srcPort;
	}

	public void setSrcPort(int srcPort) {
		this.srcPort = srcPort;
	}

	public String getDestIp() {
		return destIp;
	}

	public void setDestIp(String destIp) {
		this.destIp = destIp;
	}

	public int getDestPort() {
		return destPort;
	}

	public void setDestPort(int destPort) {
		this.destPort = destPort;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public MethodType getMethod() {
		return method;
	}

	public void setMethod(MethodType method) {
		this.method = method;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getAttachments() {
		return attachments;
	}

	public void setAttachments(String attachments) {
		this.attachments = attachments;
	}

	public String getAttachmentsStore() {
		return attachmentsStore;
	}

	public void setAttachmentsStore(String attachmentsStore) {
		this.attachmentsStore = attachmentsStore;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}
